package web.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import web.pojo.Student;

public interface StudentMapper {
    public Student findStudentInfoByUserId(@Param("uid") Long uid);

    @Select("update student set name = #{name}, sex = #{sex}, birthday = #{birthday}, address = #{address}, note = #{note} where user_id = #{id}")
    public void updateStudentInfoById(@Param("sex") Integer sex, @Param("birthday") String birthday,
            @Param("address") String address, @Param("note") String note, @Param("name") String name,
            @Param("id") Long id);
}
